import request from '@/utils/request'
import axios from 'axios'

export function sysMenuList(params) {
	return request({
		url: '/system/sysMenu/query',
		method: 'get',
		params
	})
}

export function sysMenuAllList(params) {
	return request({
		url: '/system/sysMenu/queryByAll',
		method: 'get',
		params
	})
}

export function addSysMenu(params) {
	return request({
		url: '/system/sysMenu/add',
		method: 'get',
		params
	})
}

export function modifySysMenu(params) {
	return request({
		url: '/system/sysMenu/modify',
		method: 'get',
		params
	})
}

export function deleteSysMenu(params) {
	return request({
		url: '/system/sysMenu/deleteByBatch',
		method: 'get',
		params
	})
}

export function sysMenuTreeList(params) {
  return request({
    url: '/system/sysMenu/sysMenuTreeList',
    method: 'get',
    params
  })
}


/**
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702604,'/sysMenuList','system/sysMenuList',NULL,'sysMenuList','系统菜单',NULL,10000,1,100,now(), now(), NULL, NULL, 3);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702605,NULL,'system/sysMenuList',NULL,'addRec','添加',NULL,1649889710702604,1,10,now(), now(), NULL, NULL, 2);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702606,NULL,'system/sysMenuList',NULL,'editRec','修改',NULL,1649889710702604,1,20,now(), now(), NULL, NULL, 2);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702607,NULL,'system/sysMenuList',NULL,'deleteRec','删除',NULL,1649889710702604,1,30,now(), now(), NULL, NULL, 2);

**/
